import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/auth/login'
import Regist from '../views/auth/regist'
import Password from '../views/auth/password'
import Home from '../views/home'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login },
    { path: '/register', component: Regist },
    { path: '/password', component: Password },
    { path: '/home', component: Home }
  ]
})

export default router
